005-Add Menu Items.htmlTEXTR*chˇˇˇˇ~∏˙º#∏˙º#ÅÅA¡ UniHelp Developer Guide

Add Help Menu Item

The Classic Mac OS automatically adds a "Help" Menu to applications (which includes Balloon Help, etc.). If you want to include your application's online help in this "Help" Menu, then follow these steps:

Step 1
Open the Menu component that's located in your RB project window. Add a new Menu with Name = Help and Text = Help. Now add a new menu item to this "Help" Menu and name it whatever you want (like "MyAppHelp").

Step 2
Enable the new menu item within "EnableMenuItems" in Events. For example, if your help menu item is called "MyAppHelp", then: MyAppHelp.enabled = true

Step 3
Within the RB Code Editor, add a new Menu Handler for your new help menu item. Inside the Action Function for this Menu Handler is where you will add the RB code that launches UniHelp when a user selects your help menu item. See Add UniHelp RB Code page for details.

Print Menu Items No Longer Required

In previous versions of UniHelp, the module required two print menu items in your REALbasic project -- FilePrint and FilePSetup. With the addition of the toolbar buttons, UniHelp 1.1 (and higher) no longer requires those two print menu items. In fact, the latest UniHelp does not even use menu items for its Print and Copy features. With a Print button and Copy button on the UniHelp toolbar, users can copy and print text from your help pages by simply clicking the respective toolbar buttons.

Why use buttons instead of menu items? One, it simplifies the integration of UniHelp into your REALbasic project in that it will not conflict with your existing menu items. And two, it allows UniHelp to include active Copy and Print features in non-MDI (Multiple Document Interface) Windows applications, where only the primary window usually has access to menu items.

Copyright 2002 (c) Electric Butterfly, Inc. All Rights Reserved.

LL2H Monaco-2ˆü-2ˆü∏˙ÿC  LL2SORT“Ä2MPSR Ìˇˇ+Dò